export const handleError = (error) => {
  if (error.code === 401) {
    uni.navigateTo({
      url: '/pages/login/login'
    })
  } else {
    uni.showToast({
      title: error.msg || '操作失败',
      icon: 'none'
    })
  }
} 